﻿using System;
using System.Collections;
using System.Collections.Generic;
using EnvDTE;
using EnvDTE80;

namespace VsTortoiseSVN.Commands
{
    public class Commit : SolutionBase
    {
        /// <summary>
        /// Constructor
        /// </summary>
        public Commit(DTE2 application, string name, string caption, string tooltip, int bitmapId)
            : base(application, name, caption, tooltip, bitmapId)
        {
        }

        public override bool Exec()
        {
            List<string> pathes = GetDirectoryNames(true);
            TortoiseProc.Commit(pathes);
            return true;
        }
    }
}
